
public class nGrid {
	
	private int width, height;

	public nGrid(String[] raw)
    {
		width = 0;
		height = raw.length;
		for (int i = 0; i < raw.length; i++)
		{ // metadata check
		    int length = raw[i].length();
		    width = Math.max(width, length);
		    if (length == 0)
		    { // newline, indicative of metadata
			height = i;
			break;
		    }
		}
    }
	
}
